package com.jet.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.concurrent.TimeUnit;

/**
 * @author dcl
 * @since 2024/12/17 13:05
 */
@Getter
@AllArgsConstructor
public enum LoginCache {
    LOGIN_CLERK_ACCESS_TOKEN("jet:clerk:login:%s", 24L, TimeUnit.HOURS),
    LOGIN_CLERK_REFRESH_TOKEN("jet:clerk:refresh-login:%s", 24L * 15L, TimeUnit.HOURS),
    ;

    private final String key;
    private final Long expire;
    private final TimeUnit timeUnit;
}
